/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package weka.attributeSelection.semiAS.semiClusterAS;

/**
 *
 * @author Administrator
 */
public class ClusterForSemiASM implements ClusterRun {

    ClusterForSemiAS m_cluster;

    public ClusterForSemiASM(ClusterMethod option, int[] indicator, double[][] distance, int numAttribs, int numCluster) {
        switch (option) {
            case Hierarchical:
                m_cluster = new HierarchicalForSemiAS(indicator, distance, numAttribs, numCluster);
                break;
            case KMeans:
                m_cluster = new KMeansForSemiAS(indicator, distance, numAttribs, numCluster);
                break;
            default:
                m_cluster = new KMeansForSemiAS(indicator, distance, numAttribs, numCluster);
                break;
        }
    }

    public void run() {
        m_cluster.run();
    }
}
